package web.common.internal.core.io;

import lombok.Setter;
import web.common.core.io.FileMetadata;

/**
 * @author Jin Zheng
 * @since 1.0 2021-11-17
 */
@Setter
class DefaultFileMetadata implements FileMetadata {
    private String filename;
    private long size;
    private String hashType;
    private String hash;

    public DefaultFileMetadata() {
    }

    @Override
    public String getFilename() {
        return filename;
    }

    @Override
    public long getSize() {
        return size;
    }

    @Override
    public String getHashType() {
        return hashType;
    }

    @Override
    public String getHash() {
        return hash;
    }
}
